import request from "@/utils/axios-request";
// 文章列表
export const articleList_API = ({ current, sorter }) => {
  return request({
    url: "/h5/interview/query",
    method: "get",
    params: {
      current,
      pageSize: 10,
      stem: "",
      keyWord: "",
      sorter,
    },
  });
};

// 文章详情
export const articleDetail_API = (id) => {
    return request({
        url: "/h5/interview/show",
        method: "get",
        params: {
            id
        }
    })
};


// 文章点赞, 收藏
export const LikeCollect_API = (id, optType) => {
    console.log(id, optType)
    return request({
        url: "/h5/interview/opt",
        method: "post",
        data: {
            id,
            optType
        }
    })
}


// 点赞以及收藏列表查询
export const LikeCollectList_API = (params) => {
    return request({
        url: "/h5/interview/opt/list",
        method: "get",
        params
    })
};
